package com.ruoyi.civil.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.stereotype.Component;

/**
 * 土建结构设施管理对象 civil_enginneering_facility
 *
 * @author 小赵
 * @date 2022-04-28
 */
@Component
public class CivilEnginneeringFacility extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long facilityId;

    /** 道路名称 */
    @Excel(name = "道路名称")
    private String roadName;

    /** 道路编码 */
    @Excel(name = "道路编码")
    private Long roadId;

    /** 隧道名称 */
    @Excel(name = "隧道名称")
    private String tunnelName;

    /** 隧道编码 */
    @Excel(name = "隧道编码")
    private Long tunnelId;

    /** 里程桩号 */
    @Excel(name = "里程桩号")
    private String mileageNumber;

    /** 设施名称 */
    @Excel(name = "设施名称")
    private String facilityName;

    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installationDate;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String manufacturerFactory;

    /** 使用年限 */
    @Excel(name = "使用年限")
    private Long durableYear;

    public void setFacilityId(Long facilityId)
    {
        this.facilityId = facilityId;
    }

    public Long getFacilityId()
    {
        return facilityId;
    }
    public void setRoadName(String roadName)
    {
        this.roadName = roadName;
    }

    public String getRoadName()
    {
        return roadName;
    }
    public void setRoadId(Long roadId)
    {
        this.roadId = roadId;
    }

    public Long getRoadId()
    {
        return roadId;
    }
    public void setTunnelName(String tunnelName)
    {
        this.tunnelName = tunnelName;
    }

    public String getTunnelName()
    {
        return tunnelName;
    }
    public void setTunnelId(Long tunnelId)
    {
        this.tunnelId = tunnelId;
    }

    public Long getTunnelId()
    {
        return tunnelId;
    }
    public void setMileageNumber(String mileageNumber)
    {
        this.mileageNumber = mileageNumber;
    }

    public String getMileageNumber()
    {
        return mileageNumber;
    }
    public void setFacilityName(String facilityName)
    {
        this.facilityName = facilityName;
    }

    public String getFacilityName()
    {
        return facilityName;
    }
    public void setInstallationDate(Date installationDate)
    {
        this.installationDate = installationDate;
    }

    public Date getInstallationDate()
    {
        return installationDate;
    }
    public void setManufacturerFactory(String manufacturerFactory)
    {
        this.manufacturerFactory = manufacturerFactory;
    }

    public String getManufacturerFactory()
    {
        return manufacturerFactory;
    }
    public void setDurableYear(Long durableYear)
    {
        this.durableYear = durableYear;
    }

    public Long getDurableYear()
    {
        return durableYear;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("facilityId", getFacilityId())
            .append("roadName", getRoadName())
            .append("roadId", getRoadId())
            .append("tunnelName", getTunnelName())
            .append("tunnelId", getTunnelId())
            .append("mileageNumber", getMileageNumber())
            .append("facilityName", getFacilityName())
            .append("installationDate", getInstallationDate())
            .append("manufacturerFactory", getManufacturerFactory())
            .append("durableYear", getDurableYear())
            .toString();
    }
}
